FROM nginx:1.15
RUN mkdir /usr/share/nginx/car_admin
RUN mkdir /usr/share/nginx/car_user
ADD ./web/car_admin.tar.gz /usr/share/nginx/car_admin
ADD ./web/car_user.tar.gz /usr/share/nginx/car_user
ADD ./web/nginx.conf /etc/nginx/conf.d/
WORKDIR /usr/share/nginx
RUN chmod -R a+rx * car_admin 
RUN chmod -R a+rx * car_user 